(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/home/components/popup-ad/index" ], {
    "1a88": function(e, t, n) {
        n.r(t);
        var a = n("dc5a"), r = n("6e67");
        for (var u in r) [ "default" ].indexOf(u) < 0 && function(e) {
            n.d(t, e, function() {
                return r[e];
            });
        }(u);
        n("c7f8");
        var o = n("f0c5"), i = Object(o.a)(r.default, a.b, a.c, !1, null, "24f35243", null, !1, a.a, void 0);
        t.default = i.exports;
    },
    "6e67": function(e, t, n) {
        n.r(t);
        var a = n("e860"), r = n.n(a);
        for (var u in a) [ "default" ].indexOf(u) < 0 && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(u);
        t.default = r.a;
    },
    c7f8: function(e, t, n) {
        var a = n("e139");
        n.n(a).a;
    },
    dc5a: function(e, t, n) {
        n.d(t, "b", function() {
            return a;
        }), n.d(t, "c", function() {
            return r;
        }), n.d(t, "a", function() {});
        var a = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    e139: function(e, t, n) {},
    e860: function(e, t, n) {
        (function(e) {
            var a = n("4ea4").default;
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var r = a(n("a34a")), u = a(n("c973")), o = n("554f"), i = n("8f12"), d = a(n("2de2")), l = n("8f93"), c = n("48b8"), s = n("fd0e"), f = n("665c"), p = a(n("0613")), v = n("ef7a"), h = {
                setup: function(t, n) {
                    var a = n.emit;
                    (0, s.onBeforeMount)(function() {
                        a("loaded", {
                            handleShow: P
                        });
                    });
                    var h = (0, s.ref)(!1), m = (0, s.ref)([]), b = (0, s.ref)(0), g = (0, f.useGetters)(), x = g.isLogined, _ = g.isOldUser, w = (0, 
                    s.computed)(function() {
                        return m.value.length > 1 && h.value;
                    });
                    function y() {
                        return k.apply(this, arguments);
                    }
                    function k() {
                        return (k = (0, u.default)(r.default.mark(function e() {
                            var t, n;
                            return r.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    return t = {
                                        type: 1003,
                                        _ref: ""
                                    }, 1053 === (n = p.default.state.openScene) && (t._ref = "SQ-Y-X-C-wx-sys1053"), 
                                    1005 === n && (t._ref = "SQ-Y-X-C-wx-sys1005"), e.abrupt("return", (0, o.getAdList)(t));

                                  case 5:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }))).apply(this, arguments);
                    }
                    var S = null;
                    function P() {
                        return O.apply(this, arguments);
                    }
                    function O() {
                        return (O = (0, u.default)(r.default.mark(function t() {
                            var n, a, u, o, d;
                            return r.default.wrap(function(t) {
                                for (;;) switch (t.prev = t.next) {
                                  case 0:
                                    if (x.value) {
                                        t.next = 2;
                                        break;
                                    }
                                    return t.abrupt("return", Promise.resolve("hide"));

                                  case 2:
                                    if (_.value) {
                                        t.next = 11;
                                        break;
                                    }
                                    if (n = e.getStorageSync(i.COMMON.POPUP_AD_FIRST_BLOCKED_TIME)) {
                                        t.next = 9;
                                        break;
                                    }
                                    return e.setStorageSync(i.COMMON.POPUP_AD_FIRST_BLOCKED_TIME, Date.now().toString()), 
                                    t.abrupt("return", Promise.resolve("hide"));

                                  case 9:
                                    if (!(Date.now() - n < 864e5)) {
                                        t.next = 11;
                                        break;
                                    }
                                    return t.abrupt("return", Promise.resolve("hide"));

                                  case 11:
                                    if (a = p.default.getters.startAddress.city_id, u = p.default.state.popupAd, o = u[a], 
                                    d = !0, o && o > Date.now() && (d = !1), d) {
                                        t.next = 20;
                                        break;
                                    }
                                    return h.value = d, b.value = 0, t.abrupt("return", Promise.resolve("hide"));

                                  case 20:
                                    if (!d) {
                                        t.next = 31;
                                        break;
                                    }
                                    return t.next = 23, y();

                                  case 23:
                                    if (m.value = t.sent, d = m.value.length > 0, h.value = d, b.value = b.value > m.value.length - 1 ? 0 : b.value, 
                                    !d) {
                                        t.next = 30;
                                        break;
                                    }
                                    return C(), t.abrupt("return", new Promise(function(e) {
                                        S = e;
                                    }));

                                  case 30:
                                    return t.abrupt("return", Promise.resolve("hide"));

                                  case 31:
                                  case "end":
                                    return t.stop();
                                }
                            }, t);
                        }))).apply(this, arguments);
                    }
                    function A(t) {
                        if (h.value = !1, t) {
                            var n = p.default.getters.startAddress.city_id, r = p.default.state.popupAd;
                            r[n] = Date.now() + 864e5, p.default.commit("setState", {
                                popupAd: r
                            }), e.setStorage({
                                key: "popupAd",
                                data: r
                            }), S && S("hide"), a("hide");
                        }
                        if ("close" === t) {
                            var u = m.value[b.value];
                            o.adUtils.reportAdClose(u, "首页广告弹窗", "首页", {
                                module_name: "关闭"
                            });
                        }
                    }
                    function C() {
                        var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0, t = m.value[e];
                        o.adUtils.reportAdShow(t, "首页广告弹窗", "首页");
                    }
                    function D(e) {
                        var t = e.app_id || e.wx_link_id;
                        if (1 === Number(e.jump_type) || 2 === e.action_type || !t) return !1;
                        if (t === d.default.appId) {
                            var n, r = e.action_link || e.jump_url, u = (0, c.getUrlParam)(r, "standardIDs"), o = (0, 
                            l.findVehicleInfoByStandardIds)(u, null === (n = (0, s.getCurrentInstance)()) || void 0 === n ? void 0 : n.proxy).index;
                            o > -1 && a("find-car", {
                                index: o
                            });
                        }
                    }
                    return Object.assign({
                        show: h,
                        adList: m,
                        adCurrent: b,
                        showDots: w,
                        handleHide: A,
                        handlePopupChange: function(e) {
                            C(e.detail.current), (0, s.nextTick)(function() {
                                b.value = e.detail.current;
                            });
                        },
                        handlePopupTap: function(e) {
                            try {
                                var t;
                                A(!0);
                                var n = null == e || null === (t = e.currentTarget) || void 0 === t ? void 0 : t.dataset, a = m.value[null == n ? void 0 : n.index];
                                o.adUtils.handleAdTap(a, "首页广告弹窗", "首页"), D(a);
                            } catch (e) {
                                e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                                A(!0), (0, v.sendLog)("popup ad hide catch", null == e ? void 0 : e.toString());
                            }
                        }
                    }, {
                        handleShow: P
                    });
                }
            };
            t.default = h;
        }).call(this, n("543d").default);
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/home/components/popup-ad/index-create-component", {
    "pages/home/components/popup-ad/index-create-component": function(e, t, n) {
        n("543d").createComponent(n("1a88"));
    }
}, [ [ "pages/home/components/popup-ad/index-create-component" ] ] ]);